<?php

/*
 *
 *
 *  This software has been made FREE by author for the interest of other developers.
 *       I hope this will help you in coding faster and robust php code
 *             You can modify and redistribute it as you like.
 *               Your comments, suggestions and corrections
 *                           will be highly
 *                            APPRECIATED.
 *                                       Author
 * @author :   Roshan Budhathoki (developer.roshan@gmail.com);
 * @URL    :   <http://www.roshanbudhathoki.com>
 *
 */

class Image_Image {
	
	private $path;
	private $uri;
	private $alt;
	private $width;
	private $height;
	
	public function __construct(array $args = array()) {
		array_change_key_case ( $args, 'CASE_LOWER' );
		$this->path = $args ['path'];
		$this->uri=$args['uri'];
		$this->width = 0;
		$this->height = 0;
		if(file_exists($this->path)){
			$info=getimagesize($this->path);
			$this->width=$info[0];
			$this->height=$info[1];	
		}
		
		
	}
	
	public function getPath() {
		return $this->path;
	}
	public function getURI(){
		return $this->uri;
	}
	public function getAlt() {
		return $this->alt;
	}
	
	public function getWidth() {
		return $this->width;
	}
	
	public function getHeight() {
		return $this->height;
	}

}
